package com.by.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.course.entity.bo.BaseStudentCourse;

import java.util.List;

public interface BaseStudentCourseMapper extends BaseMapper<BaseStudentCourse> {
    int deleteByPrimaryKey(Long id);

    int insert(BaseStudentCourse record);

    int insertSelective(BaseStudentCourse record);

    BaseStudentCourse selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BaseStudentCourse record);

    int updateByPrimaryKey(BaseStudentCourse record);

    List<Long> selectCourseListByUserId(Long userId);

    void deleteByCourseIdList(Long userId, List<Long> courseIdList);

    List<Long> selectUserListByCourseId(Long courseId);
}